package com.chenyue.cm.user.dao;


import com.chenyue.cm.user.dao.provider.JdGoodsSpuProvider;
import com.chenyue.cm.user.domain.vo.JdCollectSVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chenyue.cm.user.domain.JdGoodsSpu;
import com.chenyue.cm.base.dao.LcBaseMapper;

import java.math.BigDecimal;
import java.util.List;

/**
* JdGoodsSpuMapper
*
* @author chenyue-cm
* @copy chenyue-cm-codemaker
* @date 2024-02-29
*/
@Mapper
@Repository("jdGoodsSpuMapper")
public interface JdGoodsSpuMapper extends LcBaseMapper<JdGoodsSpu, String> ,BaseMapper<JdGoodsSpu> {
    @SelectProvider(method = "getHomePageGoodsList" ,type = JdGoodsSpuProvider.class)
    List<JdCollectSVo> getHomePageGoodsList(String classifyId, String keyWord);

    @SelectProvider(method = "getHomePageGoodsCount" ,type = JdGoodsSpuProvider.class)
    long getHomePageGoodsCount(String classifyId, String keyWord);
}
